/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.schedule;

import org.hibernate.validator.constraints.Length;
import com.server.modules.sys.entity.User;

import com.server.common.persistence.DataEntity;

/**
 * 日程参与人Entity
 * @author 丁光彪
 * @version 2016-12-23
 */
public class ScheduleUser extends DataEntity<ScheduleUser> {
	
	private static final long serialVersionUID = 1L;
	protected String scheduleId;		// 日程标识
	protected User user;		// 用户标识
	protected Boolean isCreater;		// 是否为日程创建者
	
	public ScheduleUser() {
		super();
	}

	public ScheduleUser(String id){
		super(id);
	}

	@Length(min=0, max=64, message="日程标识长度必须介于 0 和 64 之间")
	public String getScheduleId() {
		return scheduleId;
	}

	public void setScheduleId(String scheduleId) {
		this.scheduleId = scheduleId;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=1, message="是否为日程创建者长度必须介于 0 和 1 之间")
	public Boolean getIsCreater() {
		return isCreater;
	}

	public void setIsCreater(Boolean isCreater) {
		this.isCreater = isCreater;
	}
	
}